<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    

    <title>第 3 页 | 竹隐江南的博客</title>
    <meta name="author" content="dzy20@qq.com">
    
    <meta name="description" content="必须有人浴血奋战，世上才有自由可言！">
    
    
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    
    <meta property="og:site_name" content="必须有人浴血奋战，世上才有自由可言！"/>

    
    <meta property="og:image" content="undefined"/>
    

    <link rel="icon" type="image/png" href="/favicon.png">
    <link rel="alternate" href="/atom.xml" title="必须有人浴血奋战，世上才有自由可言！" type="application/atom+xml">
    <link rel="stylesheet" href="/css/lib/materialize.min.css">
    <link rel="stylesheet" href="/css/lib/font-awesome.min.css">
    <link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">

    
        <link rel="stylesheet" href="/css/lib/prettify-tomorrow-night-eighties.css" type="text/css">
    
    <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>


<body>
    <img src="/weixin_favicon.png" style="position: absolute; left: -9999px; opacity: 0; filter: alpha(opacity=0);">

    <nav class="green">
    <div class="nav-wrapper">
        <a href="#" data-activates="main-menu" class="button-collapse">
            <i class="fa fa-navicon"></i>
        </a>
        <div class="">
            <a href="/" class="brand-logo hide-on-med-and-down">必须有人浴血奋战，世上才有自由可言！</a>
            <ul class="right hide-on-med-and-down">
                
                    <li>
                        <a class="menu-home " href="/" >
                            <i class="fa fa-home "></i>
                            
                            首页
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-archive " href="/archives" >
                            <i class="fa fa-archive "></i>
                            
                            归档
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-category category-menu" href="javascript:;" data-activates="category-menu" >
                            <i class="fa fa-bookmark "></i>
                            
                            分类
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-reading " href="/reading" >
                            <i class="fa fa-book "></i>
                            
                            读书
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-about " href="/about" >
                            <i class="fa fa-user "></i>
                            
                            关于
                        </a>
                    </li>
                
                    <li>
                        <a class="menu-search modal-trigger " href="#search" >
                            <i class="fa fa-search "></i>
                            
                            搜索
                        </a>
                    </li>
                
            </ul>
            <div>
    <ul class="side-nav green darken-1" id="main-menu">
        
        <li class="side-user">
            <div class="row">
                <div class="col s4 no-padding">
                    <img class="avatar-image circle responsive-img" src="https://static.oschina.net/uploads/user/728/1456911_100.jpg?t=1393495702000" alt="User Avatar">
                </div>
                <div class="info col s8 valign-wrapper no-padding">
                    <div class="valign">
                        <p class="name">竹隐江南</p>
                        <p class="desc">Java后端/技术宅</p>
                    </div>
                </div>
            </div>
        </li>
        

        
            <li class="no-padding">
                <a class="waves-effect menu-home " href="/" >
                    <i class="fa fa-home "></i>
                    
                    首页
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-archive " href="/archives" >
                    <i class="fa fa-archive "></i>
                    
                    归档
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-category category-menu" href="javascript:;" data-activates="category-menu" >
                    <i class="fa fa-bookmark "></i>
                    
                    分类
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-reading " href="/reading" >
                    <i class="fa fa-book "></i>
                    
                    读书
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-about " href="/about" >
                    <i class="fa fa-user "></i>
                    
                    关于
                </a>
            </li>
        
            <li class="no-padding">
                <a class="waves-effect menu-search modal-trigger " href="#search" >
                    <i class="fa fa-search "></i>
                    
                    搜索
                </a>
            </li>
        
    </ul>

    <ul class="side-nav green darken-1" id="category-menu">
    

            

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/hive/">
                    hive <span class="right">2 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/Docker/">
                    Docker <span class="right">10 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/操作系统/">
                    操作系统 <span class="right">7 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/系统架构/">
                    系统架构 <span class="right">2 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/DevOps-CI/">
                    DevOps-CI <span class="right">1 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/SSL/">
                    SSL <span class="right">1 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/springboot/">
                    springboot <span class="right">8 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-0" collapse-level="0">
                <a class="no-padding" href="/categories/Linux/">
                    Linux <span class="right">1 篇</span></a>
                </a>
            </li>

        

            <li class="collapse-level-1" collapse-level="1">
                <a class="no-padding" href="/categories/Linux/Tomcat/">
                    Tomcat <span class="right">1 篇</span></a>
                </a>
            </li>

        

    </ul>
</div>

        </div>
    </div>
</nav>

<div id="search" class="modal search-modal">
    <div class="row">
        <div class="input-field col s12">
              <input id="search-input" type="text">
              <label for="search-input">搜索</label>
        </div>

    </div>
    <div id="search-result" class="search-result col s12">

    </div>
</div>


    <main>
        

<div class="slider">
    <ul class="slides">
    
       <li>
           <a href="javascript:;">
               <img class="slider-image" src="https://static.oschina.net/uploads/img/201701/18173351_4QWW.jpg">
               <div class="caption left-align">
                 <h4>芸芸众生</h3>
                 <h5 class="light grey-text text-lighten-3">四海为家的人遇到的人越多，越相信，相信一个陌生人不难</h5>
               </div>
           </a>
       </li>
    
       <li>
           <a href="javascript:;">
               <img class="slider-image" src="https://static.oschina.net/uploads/img/201701/18174014_uawN.jpg">
               <div class="caption right-align">
                 <h4>宁静致远</h3>
                 <h5 class="light grey-text text-lighten-3">每个认真生活的人，都值得被认真对待</h5>
               </div>
           </a>
       </li>
    
       <li>
           <a href="http://dengzy007hi.oschina.io/about/">
               <img class="slider-image" src="http://raytaylorlin-blog.qiniudn.com/image%2Fslider%2Fabout.png">
               <div class="caption right-align">
                 <h4>阅读“关于”</h3>
                 <h5 class="light grey-text text-lighten-3">了解我一下</h5>
               </div>
           </a>
       </li>
    
   </ul>
 </div>



<div id="article-list" class="container main-container">
    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/SpringBoot使用mybatis/">SpringBoot使用mybatis</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T05:39:00.000Z"><a href="/2017/07/06/SpringBoot使用mybatis/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/springboot/" class="chip red lighten-1">springboot</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <p>Springboot使用mybatis链接数据库，我查了一下网上的这部分内容，大部分分两种，一种是注入Bean，一种是每个Mapper上都注解@Mapper，既然用SpringBoot那么这就有些复杂，我们用适用的<br>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/SpringBoot使用mybatis/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/SpringBoot分页组件PageHelper介绍及使用/">SpringBoot分页组件PageHelper介绍及使用</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T05:39:00.000Z"><a href="/2017/07/06/SpringBoot分页组件PageHelper介绍及使用/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/springboot/" class="chip red lighten-1">springboot</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <p>这篇主要说一下上篇介绍的mybatis分页组件，如果你们觉得没必要，非要自己封装分页，也是可以的啦，就像博主上一篇，自己写个分页实现，然后自己捣鼓就好了。</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/SpringBoot分页组件PageHelper介绍及使用/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/SpringBoot热部署与打包/">SpringBoot热部署与打包</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T05:39:00.000Z"><a href="/2017/07/06/SpringBoot热部署与打包/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/springboot/" class="chip red lighten-1">springboot</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <h1 id="热部署"><a href="#热部署" class="headerlink" title="热部署"></a>热部署</h1><p>在开发的过程中，我们启动项目后，可能随时修改、增加方法，为了避免重复启动项目，我们可以启用热部署。</p>
<ol>
<li>引入maven包，如下<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">&lt;!-- 热启动，需要编译之后，eclipse自动编译，idea需要ct f9 --&gt;</div><div class="line">&lt;dependency&gt;</div><div class="line">    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;</div><div class="line">    &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;</div><div class="line">    &lt;optional&gt;true&lt;/optional&gt;</div><div class="line">&lt;/dependency&gt;</div></pre></td></tr></table></figure>
</li>
</ol>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/SpringBoot热部署与打包/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/FTP上传下载shell脚本/">FTP上传下载shell脚本</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T03:16:00.000Z"><a href="/2017/07/06/FTP上传下载shell脚本/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/Linux/" class="chip red lighten-1">Linux</a>
        
            <a href="/tags/环境设置/" class="chip red lighten-1">环境设置</a>
        
            <a href="/tags/FTP/" class="chip red lighten-1">FTP</a>
        
            <a href="/tags/SHELL/" class="chip red lighten-1">SHELL</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <ol>
<li>ftp自动登录批量下载文件。<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div></pre></td><td class="code"><pre><div class="line">#####从ftp服务器上的/home/data 到 本地的/home/databackup####</div><div class="line">#!/bin/bash</div><div class="line">ftp -n&lt;&lt;!</div><div class="line">open 192.168.1.171</div><div class="line">user guest 123456</div><div class="line">binary</div><div class="line">cd /home/data</div><div class="line">lcd /home/databackup</div><div class="line">prompt</div><div class="line">mget *</div><div class="line">close</div><div class="line">bye</div><div class="line">!</div></pre></td></tr></table></figure>
</li>
</ol>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/FTP上传下载shell脚本/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/Hive1.2安装/">Hive1.2安装</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T03:16:00.000Z"><a href="/2017/07/06/Hive1.2安装/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/Linux/" class="chip red lighten-1">Linux</a>
        
            <a href="/tags/hadoop/" class="chip red lighten-1">hadoop</a>
        
            <a href="/tags/hive/" class="chip red lighten-1">hive</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <p>Hive。。。后续不会写关于hadoop的安装了，当年写到这的时候发现了有集成工具可以在线安装，监控</p>
<ol>
<li><p>安装mysql数据库（这个可以用其他DB代替），安装方法参照以前写的Mysql安装教程。</p>
</li>
<li><p>登录mysql，创建hive用户。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"></div><div class="line">create user &apos;hive&apos; identified by &apos;hive&apos;;</div><div class="line"></div><div class="line">grant all privileges on *.* to &apos;hive&apos;@&apos;%&apos; with grant option;</div><div class="line"></div><div class="line">flush privileges;</div></pre></td></tr></table></figure>
</li>
</ol>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/Hive1.2安装/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/Hadoop2.7.0伪分布式安装教程/">Hadoop2.7.0伪分布式安装教程</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T03:16:00.000Z"><a href="/2017/07/06/Hadoop2.7.0伪分布式安装教程/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/Linux/" class="chip red lighten-1">Linux</a>
        
            <a href="/tags/hadoop/" class="chip red lighten-1">hadoop</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <p>总是要学点什么是吧，Java学大数据据说很快，就从这面入手了，正好项目在使用可以get一项新技能了，距离全栈工程师又进了一步不是么？</p>
<p>#Hadoop安装(伪集群)</p>
<p>######此处不介绍Hadoop和其他组件的说明，详细请百度</p>
<ol>
<li><p>注意你们的主机名，千万不要用中文，虽然不影响，看网上的各种文章有的是需要改机器名的。</p>
</li>
<li><p>安装JAVA环境变量（不介绍了）</p>
</li>
<li><p>我用的是Ubuntu Mint，默认安装了SHH clien了</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/Hadoop2.7.0伪分布式安装教程/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/MySql5.7绿色版安装教程（附密码过期解决方法）/">MySql5.7绿色版安装教程（附密码过期解决方法）</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T03:16:00.000Z"><a href="/2017/07/06/MySql5.7绿色版安装教程（附密码过期解决方法）/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/Linux/" class="chip red lighten-1">Linux</a>
        
            <a href="/tags/环境设置/" class="chip red lighten-1">环境设置</a>
        
            <a href="/tags/Mysql/" class="chip red lighten-1">Mysql</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <ol>
<li><p>安装依赖包，目前基本所有的linux环境都集成了。如果没有集成的话，请安装mysql的依赖包</p>
<p>比如：gcc,Boost库（5.7貌似是必须的，其他的版本不需要Boost依赖库也可以）</p>
</li>
<li><p>下载mysql的安装包，楼主比较喜欢绿色版，不用编译了嘛～</p>
<p>地址<a href="http://124.205.69.170/files/A180000003A376A4/dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.12-linux-glibc2.5-x86_64.tar.gz,&#39;mysql&#39;">Mysql</a></p>
</li>
<li><p>解压至安装目录</p>
<p>/home/dzy/runsofts/mysql-5.7.12</p>
</li>
</ol>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/MySql5.7绿色版安装教程（附密码过期解决方法）/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/07/06/Apache Kylin安装/">Apache Kylin安装</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-07-06T03:16:00.000Z"><a href="/2017/07/06/Apache Kylin安装/">2017-07-06</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/Linux/" class="chip red lighten-1">Linux</a>
        
            <a href="/tags/hadoop/" class="chip red lighten-1">hadoop</a>
        
            <a href="/tags/kylin/" class="chip red lighten-1">kylin</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <p>我原来的博文地址：<a href="https://my.oschina.net/u/1456911/blog/737144">https://my.oschina.net/u/1456911/blog/737144</a><br>上传安装包</p>
<p>使用ftp工具将安装包上传至服务器的/usr/local路径</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/07/06/Apache Kylin安装/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/04/13/Nginx安装/">Nginx安装</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-04-12T16:00:00.000Z"><a href="/2017/04/13/Nginx安装/">2017-04-13</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/Linux/" class="chip red lighten-1">Linux</a>
        
            <a href="/tags/Nginx安装/" class="chip red lighten-1">Nginx安装</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <p>nginx可以使用各个平台的默认安装模式，本文是源码编译安装。<br>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/04/13/Nginx安装/">阅读全文</a>
        </ div>
        
    </div>
</article>

    
        <article class="simple-article">
    <div class="card">
        <div class="card-content">
            <div class="article-title">
                
    
        <h1 class="green-link-context"><a href="/2017/03/29/ELK日志采集分析/">ELK日志采集分析</a></h1>
    


            </div>

            <time class="red-link-context" datetime="2017-03-29T09:04:53.944Z"><a href="/2017/03/29/ELK日志采集分析/">2017-03-29</a></time>

            
    <div class="tags-row">
        
            <a href="/tags/Linux/" class="chip red lighten-1">Linux</a>
        
            <a href="/tags/ELK日志分析/" class="chip red lighten-1">ELK日志分析</a>
        
    </div>



            
                <div class="entry red-link-context">
                    <p>ELK由Elasticsearch、Logstash和Kibana三部分组件组成；<br>Elasticsearch是个开源分布式搜索引擎，它的特点有：分布式，零配置，自动发现，索引自动分片，索引副本机制，restful风格接口，多数据源，自动搜索负载等。<br>Logstash是一个完全开源的工具，它可以对你的日志进行收集、分析，并将其存储供以后使用<br>kibana 是一个开源和免费的工具，它可以为 Logstash 和 ElasticSearch 提供的日志分析友好的 Web 界面，可以帮助您汇总、分析和搜索重要数据日志。</p>
                </div>
            
        </div>

        
        <div class="card-action red-link-context">
            <a href="/2017/03/29/ELK日志采集分析/">阅读全文</a>
        </ div>
        
    </div>
</article>

    

    <ul class="pagination center-align">
    <li class="">
        <a href="/page/2/"><i class="fa fa-angle-left"></i></a>
    </li>
    
    
        <li class="waves-effect"><a href="/">1</a></li>
    
        <li class="waves-effect"><a href="/page/2">2</a></li>
    
        <li class="active red"><a href="/page/3">3</a></li>
    
        <li class="waves-effect"><a href="/page/4">4</a></li>
    
    
    <li class="">
        <a href="/page/4/"><i class="fa fa-angle-right"></i></a>
    </li>
 </ul>

</div>

        <div class="fixed-action-btn float-sitemap">
    <a class="btn-floating btn-large red">
      <i class="fa fa-caret-square-o-up"></i>
    </a>
    <ul>
      <li><a class="btn-return-top btn-floating waves-effect cyan" title="回到顶部"><i class="fa fa-arrow-circle-o-up"></i></a></li>
      <li><a class="btn-floating waves-effect button-collapse light-green"  data-activates="main-menu" title="menu"><i class="fa fa-navicon"></i></a></li>
    </ul>
  </div>

    </main>
    <footer class="page-footer green darken-1">
    
    <div class="container">
        <div class="row">
            
            <div class="social-group col m4 s12">
                <h5 class="white-text">社交</h5>
                
                    <a class="social-link" href="http://weibo.com/bambooJN" target="_blank">
                        <i class="fa fa-2x fa-weibo"></i>
                    </a>
                
                    <a class="social-link" href="https://git.oschina.net/dengzy007hi" target="_blank">
                        <i class="fa fa-2x fa-github"></i>
                    </a>
                
                    <a class="social-link" href="/atom.xml" target="_blank">
                        <i class="fa fa-2x fa-rss"></i>
                    </a>
                
                <div class="site-visitors-container white-text">
                    <span>
                        <i class="fa fa-user"></i>
                        <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
                    </span>
                    <span>&nbsp;|&nbsp;</span>
                    <span>
                        <i class="fa fa-eye"></i>
                        <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
                    </span>
                </div>
            </div>
            

            
            <div class="col m8 s12">
                <h5 class="white-text">友情链接</h5>
                
                    <a class="social-link" href="https://www.oschina.net" target="_blank">开源中国</a>
                
                    <a class="social-link" href="http://jdkleo.iteye.com/" target="_blank">JDKLEO</a>
                
                    <a class="social-link" href="http://pkaq.org/" target="_blank">如是我闻</a>
                
            </div>
            
        </div>
    </div>
    

    <div class="footer-copyright red-link-context">
        <div class="container">
            © 2017 dzy20@qq.com, All rights reserved.
            <p class="right" style="margin-top: 0;">本博客由 <a href="https://hexo.io">Hexo</a> 强力驱动 | 主题 <a href="https://github.com/raytaylorlin/hexo-theme-raytaylorism">raytaylorism</a></p>
        </div>
    </div>
</footer>


    <noscript>
    <div class="noscript">
        <p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能，请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
    </div>
</noscript>
<div class="noscript">
    <p class="center-align">当前网速较慢或者你使用的浏览器不支持博客特定功能，请尝试刷新或换用Chrome、Firefox等现代浏览器</p>
</div>


<script src="/js/jquery.min.js"></script>
<script src="/js/materialize.min.js"></script>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>

<script>
    (function($) {
        $(document).ready(function() {
            // 隐藏禁用javascript（针对微信内置浏览器）的提示
            $('.noscript').hide();

            // 图片缩放效果
            var $imgs = $('img').not('.slider-image').not('.avatar-image').not('.carousel-image').not('.card-cover-image').not('.qrcode');

            // 给图片加上点击放大效果（materialbox插件）
            $imgs.addClass('materialboxed').each(function(i, el) {
                $(this).attr('data-caption', $(this).attr('alt') || ' ');
            }).materialbox();

            // 优化表格的显示
            $('table').each(function() {
                var $table = $(this);
                // 除去多行代码的情况
                if ($table.find('pre').length == 0) {
                    $table.addClass('responsive-table striped bordered');
                }
            });

            // 首页幻灯片
            $('.slider').slider({indicators: true, full_width: true, interval: 8000});

            $(".button-collapse").sideNav();
            $(".category-menu").sideNav();

            // 针对gallery post
            $('.carousel').carousel({full_width: true});
            $('.carousel-control.prev').click(function() {
                $('.carousel').carousel('prev');
            });
            $('.carousel-control.next').click(function() {
                $('.carousel').carousel('next');
            });

            // 文章目录
            $('article').not('.simple-article').find('h1').add('h2').add('h3').add('h4').add('h5').add('h6').scrollSpy();

            // 目录随屏幕滚动（防止目录过长越过footer）
            var $toc = $('.toc');
            var scrollTargetTop = 0;
            $(window).scroll(function() {
                var $activeLink = $toc.find('a.active.section');
                if ($(window).scrollTop() < 100) {
                    scrollTargetTop = 0;
                } else {
                    if ($activeLink[0]) {
                        scrollTargetTop = $activeLink.offset().top - $toc.offset().top;
                    }
                }
                $toc.css('top', '-' + scrollTargetTop + 'px');
            });

            // 修正文章目录的left-border颜色
            var color = $('.table-of-contents-text').css('color');
            $('.table-of-contents-link').css('border-left-color', color);

            // 针对移动端做的优化：FAB按钮点击一下收回
            if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
                $('.fixed-action-btn').addClass('click-to-toggle');
            }
            // 回到顶部
            $('.btn-return-top').click(function() {
                $('body, html').animate({
                    scrollTop: 0
                }, 500);
            });

            // 重置读书页面的Tab标签页的颜色
            $('li.tab a').hover(function() {
                $(this).toggleClass('text-lighten-4');
            });
            $('.indicator').addClass('red lighten-2');

            
            // 添加new标签
            $('.menu-about').append('<span class="new badge red"></span>');
            

            // 搜索功能
            $('.modal-trigger').leanModal({
                // 打开搜索框时自动聚焦
                ready: function() {
                    if ($('#search').is(":visible")) {
                        $('#search-input').focus();
                    }
                }
            });
            var searchXml = "search.xml";
            if (searchXml.length == 0) {
             	searchXml = "search.xml";
            }
            var searchPath = "/" + searchXml;
            initSearch(searchPath, 'search-input', 'search-result');
        });

        // 初始化搜索与匹配函数
        var initSearch = function(path, search_id, content_id) {
            'use strict';
            $.ajax({
                url: path,
                dataType: "xml",
                success: function(xmlResponse) {
                    // get the contents from search data
                    var datas = $("entry", xmlResponse).map(function() {
                        return {
                            title: $("title", this).text(),
                            content: $("content", this).text(),
                            url: $("url", this).text()
                        };
                    }).get();
                    var $input = document.getElementById(search_id);
                    var $resultContent = document.getElementById(content_id);
                    $input.addEventListener('input', function() {
                        var str = '<ul class=\"search-result-list\">';
                        var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                        $resultContent.innerHTML = "";
                        if (this.value.trim().length <= 0) {
                            return;
                        }
                        // perform local searching
                        datas.forEach(function(data) {
                            var isMatch = true;
                            var content_index = [];
                            var data_title = data.title.trim().toLowerCase();
                            var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
                            var data_url = data.url;
                            var index_title = -1;
                            var index_content = -1;
                            var first_occur = -1;
                            // only match artiles with not empty titles and contents
                            if (data_title != '' && data_content != '') {
                                keywords.forEach(function(keyword, i) {
                                    index_title = data_title.indexOf(keyword);
                                    index_content = data_content.indexOf(keyword);
                                    if (index_title < 0 && index_content < 0) {
                                        isMatch = false;
                                    } else {
                                        if (index_content < 0) {
                                            index_content = 0;
                                        }
                                        if (i == 0) {
                                            first_occur = index_content;
                                        }
                                    }
                                });
                            }
                            // show search results
                            if (isMatch) {
                                keywords.forEach(function(keyword) {
                                    var regS = new RegExp(keyword, "gi");
                                    data_title = data_title.replace(regS, "<span class=\"search-keyword red lighten-2\">" + keyword + "</span>");
                                });

                                str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
                                var content = data.content.trim().replace(/<[^>]+>/g, "");
                                if (first_occur >= 0) {
                                    // cut out 100 characters
                                    var start = first_occur - 20;
                                    var end = first_occur + 80;
                                    if (start < 0) {
                                        start = 0;
                                    }
                                    if (start == 0) {
                                        end = 100;
                                    }
                                    if (end > content.length) {
                                        end = content.length;
                                    }
                                    var match_content = content.substring(start, end);
                                    // highlight all keywords
                                    keywords.forEach(function(keyword) {
                                        var regS = new RegExp(keyword, "gi");
                                        match_content = match_content.replace(regS, "<span class=\"search-keyword red lighten-2\">" + keyword + "</span>");
                                    });

                                    str += "<p class=\"search-result\">..." + match_content + "...</p>"
                                }
                                str += "</li>";
                            }
                        });
                        str += "</ul>";
                        $resultContent.innerHTML = str;
                    });
                }
            });
        }
    })(jQuery);
</script>


<script src="/js/prettify.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $("pre").addClass("prettyprint");
        prettyPrint();
    });
</script>








</body>
</html>
